import Mock from 'mockjs'
import homeAPi from './home'
import loginAPi from './login'
import zhuceAPi from './zhuce'
// 设置200-2000毫秒延时请求数据
Mock.setup({
    timeout: '200-2000'
})
// 拦截 /home/getData的Ajax请求  

Mock.mock(/\/home\/getData/, 'get', homeAPi.getHomeData)

Mock.mock(/\/login\/getData/, 'get', loginAPi.getHomeData)
Mock.mock(/\/zhuce\/getData/, 'post', zhuceAPi.getHomeData)